package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.ArticleTypeService;
import com.it.park.dao.ArticleTypeMapper;
import com.it.park.model.ArticleType;

@Service("articleTypeService")
public class ArticleTypeServiceImpl extends BaseServiceImpl<ArticleType>  implements ArticleTypeService {
	
	@Autowired
	private ArticleTypeMapper articleTypeMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return articleTypeMapper.deleteByPrimaryKey(id)==1;
	}

	@Override
	public boolean insert(ArticleType record) {
		return articleTypeMapper.insert(record)==1;
	}

	@Override
	public boolean insertSelective(ArticleType record) {
		return articleTypeMapper.insertSelective(record)==1;
	}

	@Override
	public ArticleType selectByPrimaryKey(Integer id) {
		return articleTypeMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean updateByPrimaryKeySelective(ArticleType record) {
		return articleTypeMapper.updateByPrimaryKeySelective(record)==1;
	}

	@Override
	public boolean updateByPrimaryKey(ArticleType record) {
		return articleTypeMapper.updateByPrimaryKey(record)==1;
	}

	@Override
	public List<ArticleType> selectPagination(Map<String, Object> map) {
		return articleTypeMapper.selectPagination(map);
	}

	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return articleTypeMapper.selectTotal(map);
	}

	@Override
	public List<ArticleType> selectAll() {
		return articleTypeMapper.selectAll();
	}

	@Override
	public List<ArticleType> selectByCategory(Integer category) {
		return articleTypeMapper.selectByCategory(category);
	}

	@Override
	public boolean updateByPrimaryKeyWithBLOBs(ArticleType record) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<ArticleType> selectPagination(ArticleType t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer selectTotal(ArticleType t) {
		// TODO Auto-generated method stub
		return null;
	}


}
